from rest_framework.response import Response
from rest_framework.decorators import api_view

@api_view(['GET'])
def get_data(request):
    goods = {"name": "测试数据", "price": 12}
    return Response(goods)
